|
GNU Readline is a software library that provides line-editing and history capabilities for interactive programs with a command-line interface, such as Bash. It is currently maintained by Chet Ramey as part of the GNU Project. It allows users to move the text cursor, search the command history, control a kill ring (a more flexible version of a copy/paste clipboard) and use tab completion on a text terminal. ==Keyboard shortcuts== Readline key bindings are taken from the text editor Emacs, but can be customized. As a cross-platform library, readline allows applications on various systems to exhibit identical line-editing behavior. On some systems, must be used instead of , because the shortcut conflicts with another shortcut. For example, in Trisquel 5.0 (a distribution of Linux), pressing does not move the cursor forward one word, but activates "File" in the menu of the terminal window. * : Autocompletes from the cursor position. * : Moves the cursor to the line start (equivalent to the key ). * : Moves the cursor back one character (equivalent to the key ). * : Sends the signal SIGINT to the current task, which aborts and closes it. * * * Sends an EOF marker, which (unless disabled by an option) closes the current shell (equivalent to the command exit ). (Only if there is no text on the current line)* * If there is text on the current line, deletes the current character (then equivalent to the key ). * : (end) moves the cursor to the line end (equivalent to the key ). * : Moves the cursor forward one character (equivalent to the key ). * : Abort the research and restore the original line. * : Deletes the previous character (same as backspace). * : Equivalent to the tab key. * : Equivalent to the enter key. * : Clears the line content after the cursor and copies it into the clipboard. * : Clears the screen content (equivalent to the command clear ).* : (next) recalls the next command (equivalent to the key ). * : Executes the found command from history, and fetch the next line relative to the current line from the history for editing. * : (previous) recalls the prior command (equivalent to the key ). * : (reverse search) recalls the last command including the specified character(s). A second recalls the next anterior command that corresponds to the search * : Go back to the next more recent command of the research (beware to not execute it from a terminal because this command also launches its XOFF). If you changed that XOFF setting, use to return. * : Transpose the previous two characters. * : Clears the line content before the cursor and copies it into the clipboard. * : If the next input is also a control sequence, type it literally (e. g. * types "^H", a literal backspace.) * : Clears the word before the cursor and copies it into the clipboard. * : Edits the current line in the $EDITOR program, or vi if undefined. * : Read in the contents of the inputrc file, and incorporate any bindings or variable assignments found there. * : Incremental undo, separately remembered for each line. * : Display version information about the current instance of Bash. * : Alternates the cursor with its old position. (C-x, because x has a crossing shape). * : (yank) adds the clipboard content from the cursor position. * : Sends the signal SIGTSTP to the current task, which suspends it. To execute it in background one can enter bg . To bring it back from background or suspension fg (name or job id' ) (foreground) can be issued.* : Incremental undo, separately remembered for each line. * : (backward) moves the cursor backward one word. * : Capitalizes the character under the cursor and moves to the end of the word. * : Cuts the word after the cursor. * : (forward) moves the cursor forward one word. * : Lowers the case of every character from the cursor's position to the end of the current word. * : Cancels the changes and puts back the line as it was in the history. * : Capitalizes every character from the cursor's position to the end of the current word. * : Insert the last argument to the previous command (the last word of the previous history entry). 抄文引用元・出典: フリー百科事典『 ウィキペディア(Wikipedia)』 ■ウィキペディアで「GNU Readline」の詳細全文を読む スポンサード リンク
|